package swing.samples.jdk6;

import java.awt.SplashScreen;

public class JDK6SplashScreen {
	public static void main(String[] args) throws Exception {

		SplashScreen splashScreen = SplashScreen.getSplashScreen();
		if (splashScreen != null) {
			pause(3000);
			splashScreen.close();
		}
	}

	public static void pause(int milliSeconds) throws Exception {
		System.out
				.println("Pausing For " + milliSeconds / 1000 + " Seconds...");
		Thread.sleep(milliSeconds); // Pause milli seconds
	}
}